package records

import (
	"github.com/golib/mysql"
)

const RecordNameOnlineClassCourse = "online_class_course"

func init() {
	var r = &OnlineClassCourse{}
	mysql.RegisterRecord(r.Name(), r)
}

type OnlineClassCourse struct {
	ClassCourseId int    `json:"classCourseId" form:"classCourseId" column:"class_course_id" primary:"true" modify:"false"`
	TeacherId     int    `json:"teacherId" form:"teacherId" column:"teacher_id" modify:"true"`
	ClassId       int    `json:"classId" form:"classId" column:"class_id" modify:"true"`
	CourseId      int    `json:"courseId" form:"courseId" column:"course_id" modify:"true"`
	TermId        int    `json:"termId" form:"termId" column:"term_id" modify:"true"`
	StudentCount  int    `form:"studentCount" column:"student_count" modify:"true" json:"studentCount"`
	StartTime     string `modify:"true" json:"startTime" form:"startTime" column:"start_time"`
	EndTime       string `json:"endTime" form:"endTime" column:"end_time" modify:"true"`
	Status        int    `json:"status" form:"status" column:"status" modify:"true"`
	CreateTime    string `form:"createTime" column:"create_time" modify:"false" json:"createTime"`
	UpdateTime    string `json:"updateTime" form:"updateTime" column:"update_time" modify:"false"`
}

func (r *OnlineClassCourse) Name() string {
	return RecordNameOnlineClassCourse
}
